/**
 * IntroductionNotification.java
 * Created: 11.03.2011, 14:59:40
 */
package model;

import model.HexDirection;
import client.field.notification.IntroductionNotificationInterface;
import model.PlayerColor;


/**
 * An introduction notification used if a counter is introduced.
 * @author Jan-Philipp Kappmeier
 */
public class IntroductionNotification extends PieceNotification implements IntroductionNotificationInterface {
	/** The player that introduces a new counter. */
	private PlayerColor color;
	
	/**
	 * Creates the notification with the necessary data.
	 * @param counterIndex the index of the counter that performs an action
	 * @param direction the direction of the target field starting at the anchor field
	 * @param anchorPiece the index on the counter on the anchor field.
	 * @param color the player color of the introducing counter
	 */
	public IntroductionNotification( int counterIndex, HexDirection direction, int anchorPiece, PlayerColor color ) {
		super( counterIndex, direction, anchorPiece );
		this.color = color;
	}

	/**
	 * Returns the color of the new piece.
	 * @return the color of the new piece
	 */
	public PlayerColor getColor() {
		return color;
	}
}
